$().ready(function() {$('textarea.mceEditor').tinymce({ 
script_url : _live_site+'/components/com_joieditor/core/tiny_mce.js',
theme : "advanced",
language : "ru",
width : "",
height : "300",
plugins : "advimage,directionality,images,inlinepopups,paste,template",
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,pastetext,pasteword,bullist,numlist,blockquote,undo,redo,link,unlink,sub,pagebreak,rtl,charmap,insertlayer,save,visualaid,absolute,media,search,anchor,emotions,nonbreaking,visualchars",
theme_advanced_buttons2 : "paste,copy,cut,outdent,backcolor,forecolor,image,indent,hr,removeformat,styleselect,images,code,del",
theme_advanced_buttons3 : "cleanup,ins,acronym,abbr,cite,iespell,spellchecker,sup",
theme_advanced_buttons4 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : false,
content_css : _live_site+"/templates/"+_cur_template+"/css/editor.css",
relative_urls : false,
convert_urls : false
 });
 });
